package net.whzjkj.gateway.core.config;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Properties;

/**
 * @description: 线程配置
 * @author: Mr.Hu
 * @create: 2018-11-05 19:32
 **/
@Data
@ConfigurationProperties(prefix = "netty.thread")
public class ThreadPoolProperties {

    private int corePoolSize = 10;
    private int maxPoolSize = 999;
    private int keepAliveSeconds = 60;
    private int queueCapacity = 2147483647;
    private boolean allowCoreThreadTimeOut = false;
}
